export const ACCESS_TYPE_MENU = 1
export const ACCESS_TYPE_PAGE=2
export const ACCESS_TYPE_BUTTON=3
export const  ACCESS_TYPE_OPTIONS = [
  {
    label: "菜单",
    value: ACCESS_TYPE_MENU,
  },
  {
    label: "页面",
    value: ACCESS_TYPE_PAGE,
  },
  {
    label: "按钮",
    value: ACCESS_TYPE_BUTTON,
  },
]

export const ACCESS_TYPE_TEXT:Record<string,string> = {
  [ACCESS_TYPE_MENU]: "菜单",
  [ACCESS_TYPE_PAGE]: "页面",
  [ACCESS_TYPE_BUTTON]:"按钮"
}

export const STATUS_CLOSE = 0
export const STATUS_OPEN = 1
export const   STATUS_OPTIONS = [
  {
    label: "关闭",
    value: STATUS_CLOSE,
  },
  {
    label: "启用",
    value: STATUS_OPEN,
  },
  
]

export const STATUS_TEXT:Record<string,string> = {
  [STATUS_CLOSE]: "关闭",
  [STATUS_OPEN]: "启用",
}

export const FIELD_TYPES = [
  {
    label: "文本",
    value:"textInput"
  },
  {
    label: "数字",
    value:"integer"
  },
  {
    label: "时间",
    value:"datePicker"
  },
  {
    label: "图片",
    value:"picture"
  },
  {
    label: "文本域",
    value:"textarea"
  },
  {
    label: "富文本",
    value:"textEditor"
  },
]